function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: "当前版本",
      dataIndex: 'version',
      align: 'center',

    },
    {
      title: '发布时间',
      dataIndex: 'createTime',
      align: 'center',
    },
    {
      title: '启用状态',
      dataIndex: 'versionStatus',
      align: 'center',
      scopedSlots: {customRender: 'versionStatus'},
    },
    {
      title: '说明',
      dataIndex: 'remarks',
      align: 'center',
      scopedSlots: {customRender: 'remarks'},
    },
    {
      title: '操作',
      dataIndex: 'action',
      align: 'center',
      slots: {title: 'actionName'},
      scopedSlots: {customRender: 'action'}
    }
  ]
  return cols
}

export default columns